package com.linkhub.oms.admin.modules.supplier.domain.param;

import com.linkhub.oms.admin.modules.user.domain.param.BaseUserParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SupplierAddParam", description = "供应商新增、编辑对象")
public class SupplierAddParam extends BaseUserParam implements Serializable {


    @ApiModelProperty(value = "供应商名称")
    @NotBlank(message = "{validation.supplier.name.notBlank}")
    @Length(max = 50, message = "{validation.supplier.name.length}")
    private String supplierName;

    @ApiModelProperty(value = "联系人姓名")
    @NotBlank(message = "{validation.supplier.contactName.notBlank}")
    @Length(max = 50, message = "{validation.supplier.contactName.length}")
    private String contactName;

    @ApiModelProperty(value = "联系人电话")
    @NotBlank(message = "{validation.supplier.contactPhone.notBlank}")
    @Length(max = 50, message = "{validation.supplier.contactPhone.length}")
    private String contactPhone;

    @ApiModelProperty(value = "联系人email")
    @NotBlank(message = "{validation.supplier.contactEmail.notBlank}")
    @Length(max = 50, message = "{validation.supplier.contactEmail.length}")
    private String contactEmail;

    @ApiModelProperty(value = "地址")
    @Length(max = 50, message = "{validation.supplier.address.length}")
    private String address;

}
